package com.centaline.androidsalesblog.api.newest;

import com.centaline.androidsalesblog.api.NewEstApi;
import com.centaline.androidsalesblog.model.responseobject.NewEstActListRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 新盘活动
 * Created by Lihq on 2016/1/27.
 */
public class NewEstActListApi extends NewEstApi<NewEstActListRo> {

    private int startIndex;
    private int length = 10;
    private String estExtId;
    private int usedActIds;
    private String actIds;

    public NewEstActListApi(Class<?> tag, Class<NewEstActListRo> aClass, IResponseListener<NewEstActListRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public void setEstExtId(String estExtId) {
        this.estExtId = estExtId;
    }

    public void setUsedActIds(int usedActIds) {
        this.usedActIds = usedActIds;
    }

    public void setActIds(String actIds) {
        this.actIds = actIds;
    }

    @Override
    protected void setParams() {
        putParams("StartIndex", startIndex);
        putParams("length", length);
        putStringParams("EstExtId", estExtId);
        if (usedActIds == 1) {
            putParams("UsedActIds", 1);
            putParams("ActIds", actIds);
        }
    }

    @Override
    protected String getPath() {
        return "BookingActivitySearchRequest";
    }

}

